﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Snowdreamist.ComponentModel
{
    public static class UIThreadHelper
    {
        public static void InvokeOnUIThread(Delegate method, params object[] para)
        {
            if (method == null)
                throw new ArgumentNullException("method");
#if SILVELIGHT
            // silverlight
            throw new NotImplementedException();
#else
            // wpf
            System.Windows.Application.Current.Dispatcher.BeginInvoke(method, para);
#endif
        }
    }
}
